/** !A basic alert window */

#ifndef MX_DEPUI_ALERT_HEADER
#   define MX_DEPUI_ALERT_HEADER

#   include "depui/depui.h"

#   ifdef __cplusplus
extern "C" {
#   endif
/** !Basic alert window */ typedef struct MX_ALERT {
		union {
			MX_WIN_DATA win;
			MX_TEXTUAL_DATA textual;
			MX_OBJ_DATA obj;
			MX_RECTATOM_DATA rectatom;
			MX_ATOM atom;
		} base;
		MX_TEXTUAL text;
	} MX_ALERT;

	void mx_alert_handler(MX_WIN * win);
	MX_ALERT *mx_alertwin(MX_ALERT * app, size_t size, MX_HANDLER handler, int theid);

/** !Create a basic alert window. */
#   define mx_alert(id) mx_alertwin(0, 0, 0, (id))

#   ifdef __cplusplus
}
#   endif
#endif
